import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import iView from 'iview'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import axios from 'axios'
import 'iview/dist/styles/iview.css'
import './permission'
import '@/assets/css/common.css'
import qs from 'qs'

import service from "./utils/request";

// 全局方法挂载
Vue.prototype.request = service;
Vue.prototype.$qs = qs;

Vue.config.productionTip = false
Vue.use(iView)
Vue.use(ElementUI);

/*// 设置基础URL
axios.defaults.baseURL = '/api'
// 设置请求超时时间
axios.defaults.timeout = 8000

Vue.prototype.$axios = axios*/

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})